package com.sc.nft.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

@Data
public class CurrentAffairsTypeAddDTO {

    @ApiModelProperty(value = "资讯类型名称")
    @NotNull(message = "资讯类型名称不能为空")
    @Length(min = 1, max = 100, message = "资讯类型名称限制100个字")
    private String currentAffairsType;

    @ApiModelProperty(value = "排序")
    @NotNull(message = "排序不能为空")
    private Integer sort;

}
